﻿@page "/counter"
@page "/counter/{Id:int}"
@page "/counter/{Id:int}/{Hdh:int}"
@rendermode InteractiveServer

<PageTitle>Counter</PageTitle>

<h1>Counter  @id  @hdh</h1>

<p role="status">Current count: @currentCount</p>

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

@code {
    [Parameter]
    public int id { get; set; }
    [Parameter]
    public int hdh { get; set; }


    private int currentCount = 0;
    
    private void IncrementCount()
    {
        currentCount++;
    }
}
